//
//  NeighbouringCell.m
//  HeartTravel
//
//  Created by dlios on 15-7-1.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "NeighbouringCell.h"

@implementation NeighbouringCell

- (void)dealloc{
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[UILabel alloc]init];
        
        self.titleLabel.layer.cornerRadius = 10;
        self.titleLabel.layer.masksToBounds = YES;
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:17];
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel release];
    }
    return self;
}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(0, 0, self.titleLabel.frame.size.width+5, 25);
    self.titleLabel.center = CGPointMake(self.contentView.frame.size.width/2, 12.5);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
